package com.mengniu.commerce.sync.model;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.mengniu.commerce.common.core.annotation.Excel;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;


/**
 * 订单商品对象 order_item
 * 
 * @author lzx
 * @date 2023-11-28
 */
@Data
public class MnOrderItemModel
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 蒙牛主单号 */
    @Excel(name = "蒙牛主单号")
    private String mnOrderNo;

    /** 原品行号 */
    @Excel(name = "原品行号")
    private String buyItemNo;

    /** 买赠标识 */
    @Excel(name = "买赠标识")
    private String giftFlag;

    /** 产品编码 */
    @Excel(name = "产品编码")
    private String innerProductCode;

    /** 产品名称 */
    @Excel(name = "产品名称")
    private String innerProductName;

    /** 订单行备注 */
    @Excel(name = "订单行备注")
    private String note;

    /** 计划发货日期 */
    @Excel(name = "计划发货日期", width = 30, dateFormat = "yyyy-MM-dd")
    private String plannedDeliveryTime;

    /** 产品条码 */
    @Excel(name = "产品条码")
    private String productBarCode;

    /** 销售数量 */
    @Excel(name = "销售数量")
    private Integer productQuantity;

    /** 优惠总金额 */
    @Excel(name = "优惠总金额")
    private String itemPromotionAmount;

    /** 销售单位编码 */
    @Excel(name = "销售单位编码")
    private String salesUnitCode;

    /** 销售单位名称 */
    @Excel(name = "销售单位名称")
    private String salesUnitName;

    /** 子单号 */
    @Excel(name = "子单号")
    private String sourceOrderItemNo;

    /** 库存转换数量 */
    @Excel(name = "库存转换数量")
    private Integer stockConversionNum;

    /** 库存单位编码 */
    @Excel(name = "库存单位编码")
    private String stockUnitCode;

    /** 库存单位名称 */
    @Excel(name = "库存单位名称")
    private String stockUnitName;

    /** 常规总金额 */
    @Excel(name = "常规总金额")
    private String totalAmount;

    /** 单位转换关系 */
    @Excel(name = "单位转换关系")
    private Integer unitConversionRelationship;

    /** 常规单价 */
    @Excel(name = "常规单价")
    private String unitPrice;

    /** 物流信息 */
    @Excel(name = "物流信息")
    private String orderItemLogisticInfo;

    /** 商品活动信息 */
    @Excel(name = "商品活动信息")
    private String orderItemActivityInfo;

    /** 拓展字段 */
    @Excel(name = "拓展字段")
    private String ext;

    private Date createTime;

    private Date updateTime;

    private String sourceOrderNo;
}
